// TypeScript file

class AboutUI extends eui.Component
{
    private btnClose : eui.Button;
    constructor()
    {
        super();
        this.addEventListener(eui.UIEvent.COMPLETE, this.uiCompHandler, this);
        this.skinName = "resource/custom_skins/aboutUISkin.exml";
    }

    private uiCompHandler(event : eui.UIEvent) : void
    {
        console.log("\t\tAboutUI uiCompHandler");
        this.btnClose.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClickClose, this);
        this.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTouch, this);
    }

    private onClickClose(event : egret.TouchEvent) : void
    {
        this.dispatchEventWith(GameEvents.EVT_CLOSE_ABOUT);
    }

    private onTouch(event : egret.TouchEvent) : void
    {
        if (event.stageX > 64 && event.stageX < 194
        && event.stageY > 314 && event.stageY < 414)
        {
            
        }

    }
}